 //
//  NSDictionary+Tool.m
//  SLDemo
//
//  Created by bocai on 2016/12/20.
//  Copyright © 2016年 Heracles. All rights reserved.
//

#import "NSDictionary+Tool.h"

@implementation NSDictionary (Tool)

+ (NSDictionary *)t_dictionaryWithPlistName:(NSString *)name
{
    NSString *plistPath = [[NSBundle mainBundle] pathForResource:name ofType:@"plist"];
    return [NSDictionary dictionaryWithContentsOfFile:plistPath];
}

- (NSDictionary *)t_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary
{
    NSMutableDictionary *mutableDictionary = [self mutableCopy];
    [mutableDictionary addEntriesFromDictionary:dictionary];
    return [mutableDictionary copy];
}

@end
